from django.views.generic.edit import ModelFormMixin

class FileUploadFormMixin(ModelFormMixin):
    def form_valid(self, form):
        response = super().form_valid(form)
        form.store_upload_files(self.object, self.request.user)
        return response
